import { defineStore } from 'pinia'

export const useGlobalStore = defineStore('__global__', {
  state: () => ({
    user: {}
  }),
  actions: {
    setUser(user) {
      this.user = {
        ...this.user,
        ...user
      }
    }
  },
  persist: true
})
